<?php
/**
 * 描述
 * Created by Paco
 * Date: 2018/11/15 Time: 11:44
 */

namespace App\Models\Product;


use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    protected $table = 'product';
    protected $primaryKey = 'product_id';

    protected $fillable = [
        'product_name',
        'title',
        'list_price',
        'brand_id',
        'cat_id',
        'total_stock',
        'status',
        'cover_img',
        'shop_id',
        'content',
        'disable_spec',
        'check_reason'
    ];


    public function sku()
    {
        return $this->hasMany('App/Models/Product/Sku', 'product_id');
    }

}